package com.jiwei.community.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.multipart.MultipartFile;

import java.util.Date;

/**
 * @author  诸葛先生
 * 功能：
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserDto {
    private Integer sex;

    private String nickName;
    /**
     * 头像文件
     */
    private MultipartFile avatarFile;

    private String address;

    private String avatar;

    private String profile;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date birthday;
}
